public class 斐波那契数列 {
    public static void main(String[] args) {
        System.out.println(feibo(7));
    }
    public static int feibo(int num){
        if (num==1|num==2){
            return 1;
        }
        else {
            return feibo(num - 1) + feibo(num - 2);
        }
    }
}